<?php
class Application_Form_AddCategoryNews extends Zend_Form
{

	public function init()
	{
		$this->setName('editcategorynews');
		$tenloai = new Zend_Form_Element_Text('tenloai');
		$tenloai->setLabel('Tên loại :')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim')
		->addValidator('NotEmpty');
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton');
		$reset = new Zend_Form_Element_Reset('reset');
		$this->addElements(array($tenloai,$reset, $submit));
	}
}